package com.ruoyi.yyq.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 评价对象 car_evaluation
 * 
 * @author 尹永青
 * @date 2025-05-10
 */
public class CarEvaluation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private Long mid;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderId;

    /** 星级【一旦评价，则修改商家的整体总星级】 */
    @Excel(name = "星级【一旦评价，则修改商家的整体总星级】")
    private Long rate;

    /** 评价图片【集合图片】 */
    @Excel(name = "评价图片【集合图片】")
    private String imgs;

    /** 评价内容 */
    @Excel(name = "评价内容")
    private String content;

    /** 评价时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 状态（1、待审核 2、审核通过 3、审核失败） */
    @Excel(name = "状态", readConverterExp = "1=、待审核,2=、审核通过,3=、审核失败")
    private Long status;

    /** 删除状态 */
    private Long deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setMid(Long mid) 
    {
        this.mid = mid;
    }

    public Long getMid() 
    {
        return mid;
    }

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setRate(Long rate) 
    {
        this.rate = rate;
    }

    public Long getRate() 
    {
        return rate;
    }

    public void setImgs(String imgs) 
    {
        this.imgs = imgs;
    }

    public String getImgs() 
    {
        return imgs;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("mid", getMid())
            .append("orderId", getOrderId())
            .append("rate", getRate())
            .append("imgs", getImgs())
            .append("content", getContent())
            .append("time", getTime())
            .append("status", getStatus())
            .append("deleted", getDeleted())
            .toString();
    }
}
